package com.zsy.provider.web.admin;

import com.zsy.base.bean.DemoResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: my-springcloud
 * @description:
 * @author: zhaoshouyun
 * @create: 2020-04-26 17:55
 **/
@RestController
@Api(tags="用户相关接口")
public class Controller {
    @ApiOperation(value="获取单个用户信息", notes="通过用户id用户信息")
    @GetMapping("/user/{id}")
    public DemoResult getUser(@PathVariable("id") String id){
        return DemoResult.SUCCESS(id);
    }
}
